package com.woniu.vo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author Energy
 * @since 2022-10-12
 */
@Getter
@Setter
  @TableName("t_user")
@ApiModel(value = "User对象")
public class UserWithCarListVo implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("逻辑删除,不为null,默认为0，(0:未删除 1:已删除)")
      @TableLogic
    private String isDeleted;

      @ApiModelProperty("昵称")
      private String nickname;

      @ApiModelProperty("手机号")
      private String phone;

      @ApiModelProperty("微信号")
      private String wechat;

      @ApiModelProperty("头像图片")
      private String headImage;

      @ApiModelProperty("状态,默认为1(0:禁用 1:正常)")
      private String status;

      @ApiModelProperty("最近登录时间")
      private Date lastLoginTime;

      @ApiModelProperty("创建时间")
        @TableField(fill = FieldFill.INSERT)
      private Date createTime;

      @ApiModelProperty("更新时间")
        @TableField(fill = FieldFill.INSERT_UPDATE)
      private Date updateTime;

      private List<CarWithOrderListVo> carList;

}
